#ifndef CALC_H
#define CALC_H
#include <QLabel>
#include <QString>
#include <QStringList>
#include <QLineEdit>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QGroupBox>
#include "LabeledSlider.h"

class Calc:public QGroupBox
{
    Q_OBJECT
public:
    Calc(QWidget *parent = 0);
public slots:
    void sum();
    void sub();
public:    
    int i;
    QLineEdit *calcO;
    QLabel *scale[21];
    QLabel *now;
    LabeledSlider *calcI;
    QString *text;
    QPushButton *more;
    QPushButton *minus;
    QVBoxLayout *scaleL;
    QHBoxLayout *sliderL;
    QHBoxLayout *topL;
    QVBoxLayout *allL;
    QString num1;
    QString str;
    QString ans;
    int num2;
    int an;
};
#endif // CALC_H
